<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			 
			 console.log("a="+a)
			 var a=10
			 console.log("a="+a)
			 
			 function foo1()
			 {
				 console.log("foo1()="+a)
				 a=20
				 console.log("foo1()="+a)
			 }
			 
			 console.log("a="+a)
			 foo1()
			 console.log("a="+a)
			 
		</script>
	</body>
</html>
